package com.xr.sys.ui;

import org.hibernate.cfg.Configuration;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.util.GenericForwardComposer;
import org.zkoss.zul.Textbox;
import org.zkoss.zul.Window;

public class LoginComposer extends GenericForwardComposer<Window> {
	private static final long serialVersionUID = 1L;
	
	private Textbox name;
    private Textbox pwd;
    
    public void onClick$login(Event event) {
    	org.hibernate.cfg.Configuration c = new Configuration().configure();
    	org.hibernate.classic.Session
session = c.buildSessionFactory().openSession();
		System.out.println("登录~~");
		System.out.println(name.getValue());
		System.out.println(pwd.getValue()); 
    }
}
